package com.humanminoritygame.web;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class ErrorController {
  
  @RequestMapping(method = RequestMethod.GET)
  public ModelAndView catchruntime(HttpServletRequest request){
    ModelAndView mav = new ModelAndView();
    mav.setViewName("errorCatchruntime");
    mav.addObject("error", "Oops! Try again later...");
    return mav;  
  }
}
